from rest_framework import serializers

from rest_framework.validators import UniqueValidator
from rest_framework.validators import UniqueTogetherValidator

from competition.models import CompetitionSeason

class CompetitionListSerializer(serializers.ModelSerializer):
    """
    赛季详情序列化类
    """
    class Meta:
        model = CompetitionSeason
        fields = "__all__"



class CompetitionCreateSerializer(serializers.ModelSerializer):
    """
    赛季新建序列化类
    """
    class Meta:
        model = CompetitionSeason
        fields = "__all__"
